#include <bits/stdc++.h>
using namespace std;
double e=1e-8;
double n,m;

int main()
{
	cin>>n>>m;
	double left=0,right=n;
	while(left+e<right)
	{
		double mid=left+(right-left)/2;
		if(pow(mid,m)>n)
			 right=mid;
		else
			left=mid;
	}
	cout<<left<<endl;
	return 0;
}